<div class="center_title_bar">Quản lý danh mục bản tin</div>
<div class="prod_box_big">
<div class="top_prod_box_big"></div>
<div class="center_prod_box_big">
<table border="1" id="myTable"
	style="width: 540px; margin-left: 7px; margin-top: -5px;">
	<thead>
		<tr>
			<td width="50">Mã danh mục</td>
			<td width="60">Tên danh mục</td>
			<td width="130">Chú thích</td>
			<td width="15">Sửa</td>
			<td width="15">Xóa</td>
		</tr>
	</thead>

	<tbody>
				<?php
				$i = 0;
				foreach ( $this->list as $value ) {
					
					$i ++;
					$classname = 'tr1';
					if ($i % 2 == 0)
						$classname = 'tr2';
					$value instanceof Application_Model_bean_DanhMucBanTin;
					$maDanhMuc = $value->getMaDanhMuc ();
					$tenDanhMuc = $value->getTenDanhMuc ();
					$chuThich = $value->getChuThich ();
					
					?>
						<tr class="<?php
					echo $classname?>">

			<td><?php
					echo $maDanhMuc?></td>
			<td><?php
					echo $tenDanhMuc?></td>
			<td><?php
					echo $chuThich?></td>

<td><form action="<?php
	echo $this->url ( array ('action' => 'edit' ) );
	?>" method="post" >
<input type="submit" value="Sửa"></input>
<input type="hidden" name="updateDanhMuc" value="<?php
	echo $maDanhMuc;
	?>"></input>
</form></td>
			<td><form action="<?php
	echo $this->url ( array ('action' => 'delete' ) );
	?>" method="post" >
<input type="submit" value="Xóa"></input>
<input type="hidden" name="deleteDanhMuc" value="<?php
	echo $maDanhMuc;
	?>"></input>
</form></td>
		</tr>
						<?php
				}
				?>
				</tbody>
</table>
</div>
<div class="bottom_prod_box_big"></div>
</div>